home *** CD-ROM | disk | FTP | other *** search
- Path: sysadmin.sequel.net!newsman
- From: Alex Ibrado <trolloc@cyber.cyb-live.com>
- Newsgroups: comp.lang.c
- Subject: Reading large files
- Date: Mon, 22 Jan 1996 14:37:25 -0800
- Organization: CyberNET Live!
- Message-ID: <310411A5.3438@cyber.cyb-live.com>
- NNTP-Posting-Host: cyber.cyb-live.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b5 (Win16; I)
-
- Hello! I have a friend who wants to read in a file of 1,000,000 doubles
- into memory. (She's using Borland C++ 4.0/Windows.) The question is:
- can it be done using a single fread? Since the algo requires reading in
- the values several times (with a different offset each time), I
- suggested using fseek instead of reading the whole file. However, with
- 1,000,000 points read several times, this could be slow. sizeof(size_t)
- returns 2; does this mean she could only read in 65535 doubles at a
- given time?
-
- Would really appreciate any help you could extend. Thanks!
-